package com.zwd.cases.demo.gof23.component.demo2;

/**
 * @Description 测试2
 * @Author zhengwd
 * @Date 2023/4/19 0:42
 **/
public class DemoTest2 {

    public static void main(String[] args) {
        Person person = new Person("zwd");
        TShirts tShirts = new TShirts();
        BigTrouser bigTrouser = new BigTrouser();
        // 装饰过程
        tShirts.decorate(person);
        bigTrouser.decorate(tShirts);
        bigTrouser.show();
    }
}
